package edu.gdut.thesissys.dao;

import org.springframework.orm.hibernate3.support.HibernateDaoSupport;

import edu.gdut.thesissys.vo.BaseVo;

/**
 * DAO工厂类，获取指定类型的baseDao
 * 
 * @author gauze
 * 
 */
public class DaoFactory extends HibernateDaoSupport {

	public <T extends BaseVo> BaseDAO<T> getBaseDAO(Class<T> cls) {
		return new BaseDAO<T>(cls, this);
	}
}
